From 00e01d2d3c96715d2f531fa64db3972e15cdca66 Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Thu, 27 Jul 2006 18:51:52 +0000 Subject: [PATCH] Two new hooks by Ryan Lane for the StableVersions extension --- includes/Article.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/Article.php b/includes/Article.php index 738fb0fc59..a30f17f14a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -719,6 +719,7 @@ class Article { $outputDone = false; if ( $pcache ) { if ( $wgOut->tryParserCache( $this, $wgUser ) ) { + wfRunHooks( 'ArticleViewHeader', array( &$this ) ); $outputDone = true; } } @@ -2180,6 +2181,10 @@ class Article { function setOldSubtitle( $oldid=0 ) { global $wgLang, $wgOut, $wgUser; + if ( !wfRunHooks( 'DisplayOldSubtitle', array(&$this, &$oldid) ) ) { + return; + } + $revision = Revision::newFromId( $oldid ); $current = ( $oldid == $this->mLatest ); -- 2.20.1